package com.scy.coolshark.mapper;

import com.scy.coolshark.pojo.entity.Product;
import com.scy.coolshark.pojo.vo.*;

import java.util.List;

public interface ProductMapper {
    void insert(Product product);
    List<ProductAdminVO> selectAdmin();

    void deleteById(int id);

    String selectUrlById(int id);

    List<ProductTopVO> selectTop();

    List<ProductIndexVO> selectIndex();

    ProductUpdateVO selectUpdateById(int id);

    ProductDetailVO selectDetailById(int id);

    void updateViewCountById(int id);

    List<ProductIndexVO> selectByCid(int id);

    List<ProductIndexVO> selectByWd(String wd);

    void update(Product product);
}
